home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
MATHS
/
ARCAUT
/
Automatons
/
Rug
< prev
next >
Wrap
Text File
|
1991-07-27
|
477b
|
29 lines
AUTOMATON*
Rug
A simple 256 state Moore neighbourhood automaton. Each cell is replaced by
the average of it's eight neighbours plus a small increment. This
produces waves of colour which sweep over the display. Compare with 'Hodge
Podge'. Try a 200x100 window.
INITIALISATION*
10DEF PROCdo
20*SetEval wrap on
30*SetEval i 2
40ENDPROC
SCREEN*
10DEF PROCdo
20PROCsoup(0,256,1)
30ENDPROC
CODE*
( READ_NEIG
SUM_NEIG 3 >>
<i> + == )
END*